package org.wannatrak.android.activity;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import org.wannatrak.android.R;

/**
 * Shows help window.
 *
 * @Author: Maksim Tulupov maxtulupov@gmail.com
 * @Date: $Date: 2011-11-27 15:19:37 +0000 (Sun, 27 Nov 2011) $
 * @Time: 18:15
 * @Version: $Revision: 31 $
 * @Id: $Id: HelpActivity.java 31 2011-11-27 15:19:37Z maxtulupov@gmail.com $
 */
public class HelpActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
        WebView view = (WebView) findViewById(R.id.webView);
        view.setNetworkAvailable(false);
        view.setBackgroundColor(Color.parseColor("#ffccccff"));
        String string = getString(R.string.help_text);
        view.loadData(string, "text/html", "UTF-8");
    }
}
